package org.example.factorymethod;

import lombok.Data;

@Data
public class ProductB implements IProduct{
    private String tag;
    private String color;
    private String size;
    @Override
    public IProduct putColor() {
        this.setColor("green");
        return this;
    }

    @Override
    public IProduct putTag() {
        this.setTag("bad");
        this.setSize("123");
        return this;
    }
}
